﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/MasterPage.Master" Inherits="System.Web.Mvc.ViewPage<EM.Components.Entities.EM_Campaigns>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Campaign Summary | Email Marketing
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Summary</h2>

    <fieldset>
        <legend>Campaign</legend>
        
        <div class="display-label">CampaignID</div>
        <div class="display-field"><%: Model.CampaignID %></div>
        
        <div class="display-label">StartDate</div>
        <div class="display-field"><%: String.Format("{0:g}", Model.StartDate) %></div>
        
        <div class="display-label">EndDate</div>
        <div class="display-field"><%: String.Format("{0:g}", Model.EndDate) %></div>
        
        <div class="display-label">CampaignName</div>
        <div class="display-field"><%: Model.CampaignName %></div>
        
        <div class="display-label">CampaignDesc</div>
        <div class="display-field"><%: Model.CampaignDesc %></div>
        
        <div class="display-label">Owner</div>
        <div class="display-field"><%: Model.Owner %></div>
        
        <div class="display-label">ApprovalRequest</div>
        <div class="display-field"><%: Model.ApprovalRequest %></div>
        
        <div class="display-label">Approved</div>
        <div class="display-field"><%: Model.Approved %></div>
        
        <div class="display-label">ApprovedBy</div>
        <div class="display-field"><%: Model.ApprovedBy %></div>
        
        <div class="display-label">ApprovedDate</div>
        <div class="display-field"><%: String.Format("{0:g}", Model.ApprovedDate) %></div>
        
        <div class="display-label">Guid</div>
        <div class="display-field"><%: Model.Guid %></div>
        
        <div class="display-label">Submitted</div>
        <div class="display-field"><%: Model.Submitted %></div>
        
        <div class="display-label">CreatedDate</div>
        <div class="display-field"><%: String.Format("{0:g}", Model.CreatedDate) %></div>
        
        <div class="display-label">CreatedBy</div>
        <div class="display-field"><%: Model.CreatedBy %></div>
        
        <div class="display-label">UpdatedDate</div>
        <div class="display-field"><%: String.Format("{0:g}", Model.UpdatedDate) %></div>
        
        <div class="display-label">UpdatedBy</div>
        <div class="display-field"><%: Model.UpdatedBy %></div>
        
    </fieldset>
    <fieldset>
        <legend>Email</legend>
        <div class="display-label">Subject</div>
        <div class="display-field"><%:
             Model.EM_EmailInstances.First<EM.Components.Entities.EM_EmailInstances>().SubjectLine %>
        </div>
        <div class="display-field"><%:
             Model.EM_EmailInstances.First<EM.Components.Entities.EM_EmailInstances>().EmailBody %>
        </div>
    </fieldset>
    <p>
        <% using (Html.BeginForm())
           { %>
        <button name="button"  type="submit" value="<%= Model.CampaignID %>">Submit</button>
        <%} %>
        <%: Html.ActionLink("Edit", "Edit", new { id=Model.CampaignID }) %> |
        <%: Html.ActionLink("Back to List", "Index") %>
    </p>

</asp:Content>

